function Person(name, age) {
  this.name = name;
  this.age = age;
}
Person.info = "aaa"; //p1访问不到，因为info属性没有挂载到 prototype上
const p1 = new Person("LDF", 18);
console.log(p1);
console.dir(Person);
console.log("----------------");

class Animal {
  constructor(name, age) {
    this.name = name;
    this.age = age;
  }
  static info = "eee"; //等价于Animal.info='eee' 构造函数的静态属性
}

const a1 = new Animal("大黄", 3);
console.log(a1);
console.log(a1.info);
console.log(Animal.info);
